package com.maomao.controller;

import com.maomao.entitiy.User;
import com.maomao.service.impl.UserServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author mao
 * @date 2025-04-28- 9:44
 * @descript
 */
@RestController
@RequestMapping("/sentinel/test")
public class TestController {

    @Autowired
    private UserServiceImpl userService;

    @GetMapping("/index")
    public User index() {
        User userById = userService.getUserById(111L);
        return userById;
    }

    @GetMapping("/maomao")
    public String maomao() {
        return "maomao";
    }


}
